package cn.yr.controller.portal;

import cn.yr.common.util.Ret;
import cn.yr.domain.vo.CountVo;
import cn.yr.service.portal.CountService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
* @Title: CountController
* @Description: 统计
* @author Lang
* @date 2020/3/29 17:11
*/

@RequestMapping("count")
@RestController
public class CountController  {

	@Resource
	private CountService countService;

	@GetMapping("getCount")
	public Ret<CountVo> getCount(){
		CountVo countVo = countService.getCount();
		return Ret.success(countVo);
	}
}

